package com.fengchao.api.dao.sam;

import com.fengchao.api.dao.BaseMapper;
import com.fengchao.model.sam.SamArtistMessageComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SamArtistMessageCommentMapper extends BaseMapper<SamArtistMessageComment> {
    /**
     * 根据动态id查询评论条数
     *
     * @return
     */
    Integer findCountByMessageId(Integer messageId);

    /**
     * 根据动态id查询评论
     *
     * @return
     */
    List<SamArtistMessageComment> findByMessageId(@Param("messageId") Integer messageId, @Param("start") Integer start, @Param("count") Integer count);
}